<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">归属人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index"  class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-VIN" class="form-control" name="row[VIN]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_brand_id" data-rule="required" data-source="car/brand/index" class="form-control selectpage" name="row[car_brand_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_series_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_series_id" data-rule="required" data-source="car/series/index" class="form-control selectpage" name="row[car_series_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_models_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_models_id" data-rule="required" data-source="car/models/index" class="form-control selectpage" name="row[car_models_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_image" class="form-control" size="50" name="row[car_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-car_image" class="btn btn-danger faupload" data-input-id="c-car_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-car_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-car_image" class="btn btn-primary fachoose" data-input-id="c-car_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-car_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-car_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_video')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_video" class="form-control" size="50" name="row[car_video]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-car_video" class="btn btn-danger faupload" data-input-id="c-car_video" data-multiple="false" data-preview-id="p-car_video"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-car_video" class="btn btn-primary fachoose" data-input-id="c-car_video" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-test_report_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-car_video"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registration_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registration_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[registration_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Factory_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[factory_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cc" class="form-control" step="0.1" name="row[cc]" type="number">
        </div>
    </div>





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cc_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[cc_unit]', ['L'=>'L', 'T'=>'T'])}

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_price]', ['0'=>'否', '1'=>'是'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-base_price" class="form-control" step="0.01" name="row[base_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开票金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoice_amount" class="form-control" step="0.01" name="row[invoice_amount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">退税金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_amount" class="form-control" step="0.01" name="row[refund_amount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transfer_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transfer_num" class="form-control" name="row[transfer_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Odometer_km')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-odometer_km" class="form-control" step="0.1" name="row[odometer_km]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Year_inspect_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-year_inspect_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[year_inspect_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Compulsory_insurance_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-compulsory_insurance_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[compulsory_insurance_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mortgage')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[mortgage]', ['0'=>'无抵押', '1'=>'有抵押'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_character')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[use_character]', ['0'=>'非营运', '1'=>'网约车退役'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[car_describe]" class="form-control" cols="30" rows="5"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label_ids" data-rule="required" data-source="car/label/index" data-multiple="true" class="form-control selectpage" name="row[label_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sparkle_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sparkle_ids" data-rule="required" data-source="car/sparkle/index" data-multiple="true" class="form-control selectpage" name="row[sparkle_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Key_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-key_num" class="form-control" name="row[key_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Spare_tire')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[spare_tire]', ['0'=>'无', '1'=>'有'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_colour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_colour" class="form-control" name="row[car_colour]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Prove_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-prove_image" class="form-control" size="50" name="row[prove_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-prove_image" class="btn btn-danger faupload" data-input-id="c-prove_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-prove_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-prove_image" class="btn btn-primary fachoose" data-input-id="c-prove_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-prove_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-prove_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Test_report_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-test_report_file" class="form-control" size="50" name="row[test_report_file]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-test_report_file" class="btn btn-danger faupload" data-input-id="c-test_report_file" data-multiple="false" data-preview-id="p-test_report_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-test_report_file" class="btn btn-primary fachoose" data-input-id="c-test_report_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-test_report_file"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-test_report_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ssss_report_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-ssss_report_image" class="form-control" size="50" name="row[ssss_report_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-ssss_report_image" class="btn btn-danger faupload" data-input-id="c-ssss_report_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-ssss_report_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-ssss_report_image" class="btn btn-primary fachoose" data-input-id="c-ssss_report_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-ssss_report_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-ssss_report_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Danger_report_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-danger_report_image" class="form-control" size="50" name="row[danger_report_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button data-multiple="true" type="button" id="faupload-danger_report_image" class="btn btn-danger faupload" data-input-id="c-danger_report_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-danger_report_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button data-multiple="true" type="button" id="fachoose-danger_report_image" class="btn btn-primary fachoose" data-input-id="c-danger_report_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-danger_report_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-danger_report_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gearbox')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[gearbox]', ['0'=>'手动', '1'=>'自动'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_price" class="form-control" step="0.01" name="row[new_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Load_people_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-load_people_num" class="form-control" name="row[load_people_num]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
